/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.agi.util.sound;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.sound.sampled.*;
import javax.sound.sampled.Line.Info;

/**
 *
 * @author Renato
 */
public class MiniTeste {
    private Mixer mixer;
    private Line line;
    public MiniTeste(){
        mixer=AudioSystem.getMixer(null);
        
        System.out.println(mixer.toString());
        try {        
            Info[] info;
            info=mixer.getSourceLineInfo();
            line=mixer.getLine(info[0]);
            line.open();
            
            
            
        } catch (LineUnavailableException ex) {
            Logger.getLogger(MiniTeste.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        
    }
    
    private void apresentarInformacao(Info[] controls){
        for(Info item : controls){
            System.out.println(item.toString());            
        }
    }    
}
